package com.example.springboot_demo.pojo;

public class StandardCategory {
    private Integer id;

    private String name;

    private String code;

    private Integer level;

    private Integer parentId;

    private Long mtime;

    private Long ctime;

    public StandardCategory(Integer id, String name, String code, Integer level, Integer parentId, Long mtime, Long ctime) {
        this.id = id;
        this.name = name;
        this.code = code;
        this.level = level;
        this.parentId = parentId;
        this.mtime = mtime;
        this.ctime = ctime;
    }

    public StandardCategory() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Long getMtime() {
        return mtime;
    }

    public void setMtime(Long mtime) {
        this.mtime = mtime;
    }

    public Long getCtime() {
        return ctime;
    }

    public void setCtime(Long ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        return "StandardCategory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", level=" + level +
                ", parentId=" + parentId +
                ", mtime=" + mtime +
                ", ctime=" + ctime +
                '}';
    }
}